From 1367e9e5ba4d1612e303123ec0bbf961100fcfa1 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Tue, 1 Dec 2015 13:27:55 -0600 Subject: [PATCH] xendomains initscript: test for privcmd char device Allow the init script to continue if either the character device or the proc file is available. CC: Ian Jackson CC: Stefano Stabellini CC: Ian Campbell CC: Wei Liu Signed-off-by: Doug Goldstein Acked-by: Ian Jackson --- tools/hotplug/Linux/xendomains.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hotplug/Linux/xendomains.in b/tools/hotplug/Linux/xendomains.in index 0603842a87..686f061cac 100644 --- a/tools/hotplug/Linux/xendomains.in +++ b/tools/hotplug/Linux/xendomains.in @@ -45,7 +45,7 @@ fi # Correct exit code would probably be 5, but it's enough # if xend complains if we're not running as privileged domain -if ! [ -e /proc/xen/privcmd ]; then +if ! [ -e /dev/xen/privcmd ] || [ -e /proc/xen/privcmd ]; then exit 0 fi -- 2.30.2